package es.ceura.wilder.datastructures;

import java.util.AbstractMap.SimpleImmutableEntry;
import java.util.Map.Entry;

/**
 *
 * @author 66785403 (Jorge Madrid Portillo)
 */
public class Cookie {

    private final String value, key;
    private SimpleImmutableEntry entry;

    public Cookie(String value, String key) {
        this.value = value;
        this.key = key;
        entry = new SimpleImmutableEntry<>(key, value);
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public Entry<String, String> getEntry() {
        return entry;
    }

    @Override
    public String toString() {
        return "Cookie{" + "value=" + value + ", key=" + key + '}';
    }
}
